import * as req from '@/request';


export async function blockedIpList(
  params?: { [key: string]: any },
  sorter?: { [key: string]: any },
  filter?: { [key: string]: any },
  ) {
  return req.postForm<API.IpBlacklistList>('/ipblacklist/list',
  params,
  sorter,
  filter,);
}

export async function checkblockedIpList(data: {ips?: string}) {
  return req.postForm<API.IpBlacklistList>('/ipblacklist/checkIps', data);
}


export async function blockedIpStatList(
  params?: { [key: string]: any },
  sorter?: { [key: string]: any },
  filter?: { [key: string]: any },
  ) {
  return req.postForm<API.IpBlacklistStatList>('/ipblacklist/StatList',
  params,
  sorter,
  filter,);
}

export async function checkIpAreas(
  params?: { [key: string]: any },
  sorter?: { [key: string]: any },
  filter?: { [key: string]: any },
) {
  return req.postForm<API.VpnServerOnlineIpList>(
    '/ipblacklist/IpAreas',
    params,
    sorter,
    filter,
  );
}



